class AccountWithdrawHistoryModel {
  int? totalCount;
  List<AccountWithdrawHistoryItemModel>? items;

  AccountWithdrawHistoryModel({this.totalCount, this.items});

  AccountWithdrawHistoryModel.fromJson(Map<String, dynamic> json) {
    totalCount = json['totalCount'];
    if (json['items'] != null) {
      items = <AccountWithdrawHistoryItemModel>[];
      json['items'].forEach((v) {
        items!.add(new AccountWithdrawHistoryItemModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['totalCount'] = this.totalCount;
    if (this.items != null) {
      data['items'] = this.items!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class AccountWithdrawHistoryItemModel {
  int? userId;
  String? userRealName;
  double? amount;
  int? state;
  double? userWallet;
  String? remark;
  String? createTime;
  String? cancelTime;
  int? watWithdrawPayType;
  String? watWithdrawPayTypeDisplayName;
  String? aliPayAccount;
  String? payTime;
  String? paymentNo;
  int? orderId;
  String? reviewTime;
  int? id;
  double? serviceFee;
  String? tmcBankAccountAccountName;
  String? tmcBankAccountBankCardNumber;
  String? tmcBankAccountIdCardNumber;
  String? tmcBankAccountReservedPhoneNumber;

  AccountWithdrawHistoryItemModel(
      {this.userId,
      this.userRealName,
      this.amount,
      this.state,
      this.userWallet,
      this.remark,
      this.createTime,
      this.cancelTime,
      this.watWithdrawPayType,
      this.watWithdrawPayTypeDisplayName,
      this.aliPayAccount,
      this.payTime,
      this.paymentNo,
      this.orderId,
      this.reviewTime,
      this.id,
      this.serviceFee,
      this.tmcBankAccountAccountName,
      this.tmcBankAccountBankCardNumber,
      this.tmcBankAccountIdCardNumber,
      this.tmcBankAccountReservedPhoneNumber});

  AccountWithdrawHistoryItemModel.fromJson(Map<String, dynamic> json) {
    userId = json['userId'];
    userRealName = json['userRealName'];
    amount = json['amount'];
    state = json['state'];
    userWallet = json['userWallet'];
    remark = json['remark'];
    createTime = json['createTime'];
    cancelTime = json['cancelTime'];
    watWithdrawPayType = json['watWithdrawPayType'];
    watWithdrawPayTypeDisplayName = json['watWithdrawPayTypeDisplayName'];
    aliPayAccount = json['aliPayAccount'];
    payTime = json['payTime'];
    paymentNo = json['paymentNo'];
    orderId = json['orderId'];
    reviewTime = json['reviewTime'];
    id = json['id'];
    serviceFee = json['serviceFee'];
    tmcBankAccountAccountName = json['tmcBankAccountAccountName'];
    tmcBankAccountBankCardNumber = json['tmcBankAccountBankCardNumber'];
    tmcBankAccountIdCardNumber = json['tmcBankAccountIdCardNumber'];
    tmcBankAccountReservedPhoneNumber = json['tmcBankAccountReservedPhoneNumber'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userId'] = this.userId;
    data['userRealName'] = this.userRealName;
    data['amount'] = this.amount;
    data['state'] = this.state;
    data['userWallet'] = this.userWallet;
    data['remark'] = this.remark;
    data['createTime'] = this.createTime;
    data['cancelTime'] = this.cancelTime;
    data['watWithdrawPayType'] = this.watWithdrawPayType;
    data['watWithdrawPayTypeDisplayName'] = this.watWithdrawPayTypeDisplayName;
    data['aliPayAccount'] = this.aliPayAccount;
    data['payTime'] = this.payTime;
    data['paymentNo'] = this.paymentNo;
    data['orderId'] = this.orderId;
    data['reviewTime'] = this.reviewTime;
    data['id'] = this.id;
    data['serviceFee'] = this.serviceFee;
    data['tmcBankAccountAccountName'] = this.tmcBankAccountAccountName;
    data['tmcBankAccountBankCardNumber'] = this.tmcBankAccountBankCardNumber;
    data['tmcBankAccountIdCardNumber'] = this.tmcBankAccountIdCardNumber;
    data['tmcBankAccountReservedPhoneNumber'] = this.tmcBankAccountReservedPhoneNumber;
    return data;
  }
}
